import { _decorator, Component, View,Canvas,UITransform, log } from 'cc';
import { setSize } from './constant';
const { ccclass, property } = _decorator;

@ccclass('b_g')
export class b_g extends Component {
    start() {
        // 分辨率适配
        const view =this.node.getComponent(UITransform)
        log("view.contentSize",view.contentSize)
        setSize(view.contentSize)
    }
    
    update(deltaTime: number) {
        
    }
}

